<template>
	<view class="padding30rpx">
		<view v-if="data.length>0">
			<view class="dis align-items line part" v-for="(item,index) in data" :key="index">
				<view>
					<view class="fontSize32rpx">{{item.contentname}}</view>
					<view class="hui99">{{item.creationtime}}</view>
				</view>
				<view class="fontSize40rpx jin u-m-l-20 u-flex">
					-{{item.transactions}}
					<image src="../../static/user/bi.png"></image>
				</view>
			</view>
		</view>
		<view v-if="data.length<1" style="padding-top: 400rpx;" class="u-p-b-100">
			<u-empty icon-size="280" text="暂无数据~" src="/static/images/noneList.png"></u-empty>
		</view>
		<view class="u-padding-20" v-else>
			<u-loadmore :status="status" />
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: [],
				status: 'loadmore',
			}
		},
		onLoad() {
			this.getList()
		},
		methods: {
			getList() {
				this.$http.get('app/CurrencyController/selectUserCurriculumList').then(res => {
					if (res.code == 200) {
						this.data = res.data
					}
					this.status = 'nomore';
					uni.stopPullDownRefresh();
				})
			},

		}
	}
</script>

<style lang="scss" scoped>
	image {
		width: 31rpx;
		height: 31rpx;
		margin-left: 15rpx;
	}

	.jin {
		color: #FF542C;
	}

	.part {
		padding-bottom: 25rpx;
	}
</style>
